d5fc8b7f1d9177462d148f34323c21f3c5c9c3ac,adaptivepaymentssdk/src/main/java/com/paypal/svcs/services/AdaptivePaymentsService.java,AdaptivePaymentsService,refund,#RefundRequest#String#,431
Before Change
* @throws OAuthException
*/
public RefundResponse refund(RefundRequest refundRequest, String apiUsername) throws SSLConfigurationException, InvalidCredentialException, UnsupportedEncodingException, IOException, HttpErrorException, InvalidResponseDataException, ClientActionRequiredException, MissingCredentialException, InterruptedException, OAuthException {
String response = call("Refund", refundRequest.toNVPString(), apiUsername);
return RefundResponse.createInstance(NVPUtil.decode(response), "", -1);
}
After Change
*/
public RefundResponse refund(RefundRequest refundRequest, String apiUsername) throws SSLConfigurationException, InvalidCredentialException, UnsupportedEncodingException, IOException, HttpErrorException, InvalidResponseDataException, ClientActionRequiredException, MissingCredentialException, InterruptedException, OAuthException {
APICallPreHandler apiCallPreHandler = null;
apiCallPreHandler = new PlatformAPICallPreHandler(refundRequest.toNVPString(), SERVICE_NAME, "Refund", apiUsername, getAccessToken(), getTokenSecret());
((PlatformAPICallPreHandler) apiCallPreHandler).setSdkName(SDK_NAME);
((PlatformAPICallPreHandler) apiCallPreHandler).setSdkVersion(SDK_VERSION);
String response = call(apiCallPreHandler);
return RefundResponse.createInstance(NVPUtil.decode(response), "", -1);
}